<?php

namespace App\Http\Controllers\Api\V1;

use Carbon\Carbon;
use App\Models\Price;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Api\V1\Resources\PriceResource;

class PricesController extends Controller
{
	public function index()
	{
		
		$prices = Price::query()
			->orderBy("order")
			->take(4)
			->get();
		
		return PriceResource::collection($prices);
	}

	public function all()
	{
		
		$prices = Price::query()
			->orderBy("order")
			->get();
		
		return PriceResource::collection($prices);
	}
	
}
